package com.godtree.dao;

import com.godtree.model.RankCrawlerCollection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.godtree.model.RankItem;
import com.godtree.mybatisplus.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author lisicheng
 * @since 2022-07-19
 */
public interface RankCrawlerCollectionMapper extends SuperMapper<RankCrawlerCollection> {

  /**
   * 通过rankId，排名列（动态）获取排名数据
   *
   * @param rankItemList 排名列
   * @param rankId       排名id
   * @return 排名数据
   */
  @SuppressWarnings("all")
  List<Map> getData(@Param("list") List<RankItem> rankItemList,
      @Param("rankId") String rankId);

}
